<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML DOM改变CSS</title>
  </head>
  <body>
    <h1>改变HTML样式</h1>
    <p>Hello World</p>
    <p id="p">Hello World</p>
    <script type="text/javascript">
      var p = document.getElementById('p');
      p.style.color = "#ff0000";
      p.style.fontSize = "14px";
    </script>
  </body>
</html>
